<div class="box">
  <div class="box-header">
    <div class="row">
        <div class="col-sm-5">
    <ob_link><a class="btn" href="{:url('projectAdd')}"><i class="fa fa-plus"></i> 新 增</a></ob_link>
      <ob_link><a class="btn export" url="{:url('exportPersonList')}"><i class="fa fa-download"></i> 导 出</a></ob_link>
        </div>
        <div class="col-sm-7">
            <div class="box-tools search-form pull-right">
                <div class="input-group input-group-sm">
                    
                    <input type="text" name="search_data" style="width: 200px;" class="form-control pull-right" value="{:input('search_data')}" placeholder="支持昵称|负责人">

                    <div class="input-group-btn">
                      <button type="button" id="search"  url="{:url('projectlist')}" class="btn btn-info btn-flat"><i class="fa fa-search"></i></button>
                    </div>

                </div>
           </div>
        </div>
      </div>  
  </div>
    
  <div class="box-body table-responsive">
    <table  class="table table-bordered table-hover">
      <thead>
      <tr>
          <th>名称</th>
          <th>负责人</th>
          <th>项目描述</th>
          <th>完成情况</th>
          <th>创建时间</th>
          <th class="status-th">状态</th>
          <th>操作</th>
      </tr>
      </thead>
      
      {notempty name='list'}
        <tbody>
            {volist name='list' id='vo'}
                <tr>
                  <td>{$vo.name}</td>
                  <td>{$vo.num}</td>
                  <td>{$vo.describe}</td>
                  <td>{$vo.degree}</td>
                  <td>{$vo.create_time}</td>
                  <td><ob_link><a class="ajax-get" href="{:url('setStatus', array('ids' => $vo['id'], 'status' => (int)!$vo['status']))}">{$vo.status_text}</a></ob_link></td>
                  

                  <td class="col-md-2 text-center">
                      <ob_link><a href="{:url('projectEdit', array('id' => $vo['id']))}" class="btn"><i class="fa fa-edit"></i> 编 辑</a></ob_link>
                      &nbsp;
                      <ob_link><a class="btn confirm ajax-get"  href="{:url('projectDel', array('id' => $vo['id']))}"><i class="fa fa-trash-o"></i> 删 除</a></ob_link>
                  </td>
                </tr>
            {/volist}
        </tbody>
        {else/}
        <tbody><tr class="odd"><td colspan="7" class="text-center" valign="top">{:config('empty_list_describe')}</td></tr></tbody>
      {/notempty}
    </table>
  </div>

  <div class="box-footer clearfix text-center">
      {$list->render()}
  </div>

</div>
<script>
    //导出功能
    $(".export").click(function(){
        
        window.location.href = searchFormUrl($(".export"));
    });
</script>